package com.xinlong.service.impl;

import com.xinlong.dao.IGuidedao;
import com.xinlong.entity.Guide;
import com.xinlong.service.IGuideService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IGuideServiceimpl implements IGuideService {

    @Autowired
    IGuidedao iGuidedao;

    public List<Guide> AllGuide(Integer id) {
        return iGuidedao.AllGuide(id);
    }

    public void saveGuide(Guide guide) {
        iGuidedao.saveGuide(guide);
    }

    public void deGuide(Integer id) {
        iGuidedao.deGuide(id);
    }
}
